package com.ruoyi.patrol.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 单详情对象 pt_form_details
 * 
 * @author lkm
 * @date 2022-11-12
 */
public class PtFormDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 表单问题详情编号 */
    private Long id;

    /** 表单编号 */
    @Excel(name = "表单编号")
    private Long formId;

    /** 表单问题 */
    @Excel(name = "表单问题")
    private String title;

    /** 表单问题类型（0：选择，1：简答） */
    @Excel(name = "表单问题类型", readConverterExp = "0=：选择，1：简答")
    private Integer type;

    /** 表单问题类别 */
    @Excel(name = "表单问题类别")
    private Integer category;

    /** 问题序号 */
    @Excel(name = "问题序号")
    private Long serialno;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFormId(Long formId) 
    {
        this.formId = formId;
    }

    public Long getFormId() 
    {
        return formId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getCategory()
    {
        return category;
    }
    public void setCategory(Integer category)
    {
        this.category = category;
    }

    public Integer getType()
    {
        return type;
    }
    public void setSerialno(Long serialno) 
    {
        this.serialno = serialno;
    }

    public Long getSerialno() 
    {
        return serialno;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("formId", getFormId())
            .append("title", getTitle())
            .append("type", getType())
            .append("category", getCategory())
            .append("serialno", getSerialno())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
